<template>
    <div class="store-goods-right-wrap">
        <div class="store-good-right-content index-StoreResultNew-wrap ">
            <div class="store-good-list-box store-goods-list">
                <div class="good-current-sencond-box" style="height:31.77px;">
                    <div class="childCategoryTitle" style="display:flex;color:#666;">
                        <div class="good-current-title-txt" style="font-size:12px;line-height:31.77px">为你优选
                            <span style="font-size:12px">(42)</span>
                        </div>
                        <div class="categorySort " >
                            <span>
                                <span class="sort-span sort-txt" style="font-size:12px;line-height:31.77px">默认排序</span>
                                <span class="sort-down"></span>
                            </span>
                        </div>
                    </div>
                </div>
                <div style="touch-action: none;overflow-y:scroll;box-sizing: border-box;flex: 1 1;position: relative;">
                    <div style="min-height: 551.697px;box-sizing: border-box;width: 100%;position: relative;overflow-y:scroll;">
                        <div style="min-height: 546.234px;padding: 0 0 30px 10px;box-sizing: border-box;overflow-y:scroll;">
                            <div class="goods-item" v-for="li in car" :key="'car'+li.id">
                                <div style="display: flex;position: relative;overflow: hidden;padding: 15px 10px 15px 0;background: #fff;    justify-content: space-between;">
                                    <!-- //1 -->
                                    <!-- <div v-for="li in lists" :key="'lists'+li.id" class="ListsLi">
                                        <img :src="imgUrl+'/'+li.imgUrl" alt="" class="listsImg">
                                        <p class="ballTpl3-title">{{li.title}}</p>
                                    </div> -->
                                    <div style="overflow: hidden;color: #555;">
                                        <div style="display: flex;position: relative;float: left;margin-top: 2px;border-radius: 4px;width:65px" @click="detail()">
                                            <img :src="imgUrl+'/'+li.imgUrl" alt="" style="display: block;width: 65px;height: 65px;border-radius: 4px;"> 
                                        </div>
                                        <div style="padding-left: 10px;overflow: hidden;flex: 1 1;display: flex;flex-direction: column;height: 100%;width:164.6px" @click="detail()">
                                            <span style="font-weight: 700;font-size: 16px;color: #333;max-height: 42px;line-height: 20px;word-break: break-all;overflow: hidden;text-overflow: ellipsis;">{{li.title}}</span>
                                            <p style="padding-top: 5px;font-size:10px">月售780件 好评97%</p>
                                            <div style="overflow: hidden;padding-top: 5px;">
                                                <div >
                                                    <label style="font-size: 18px;line-height: 22px;display: block;white-space: nowrap;color: #ff3434;font-size: 18px;">{{li.realprice}}</label>
                                                    <label style="display: block;white-space: nowrap;">
                                                        <span style="color: rgb(109, 203, 84); font-size: 12px; line-height: 15px; font-weight: bold; text-decoration: none;">{{li.fullprice}}</span>
                                                        <img :src="assets.xjhy" style="background-repeat: no-repeat;max-height: 10px;max-width: 38px;background-size: 100%;vertical-align: top;padding-top: 2px;margin-top: 4px;">
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="cartBox" style="position: absolute;right: 10px;bottom: 15px;width:27px;height:27px;margin-right:10px;">
                                        <div style="display: flex;" @click="add(li,li.id)">
                                            <div style="width: 27px;height: 27px;vertical-align: top;border: 0 solid transparent;">
                                                <img :src="imgUrl+'/upload/plus.png'" alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="goods-item">
                                <div style="display: flex;position: relative;overflow: hidden;padding: 15px 10px 15px 0;background: #fff;    justify-content: space-between;">
                                    <div style="overflow: hidden;color: #555;">
                                        <div style="display: flex;position: relative;float: left;margin-top: 2px;border-radius: 4px;width:65px">
                                            <img :src="assets.cong" alt="" style="display: block;width: 65px;height: 65px;border-radius: 4px;"> 
                                        </div>
                                        <div style="padding-left: 10px;overflow: hidden;flex: 1 1;display: flex;flex-direction: column;height: 100%;width:164.6px">
                                            <span style="font-weight: 700;font-size: 16px;color: #333;max-height: 42px;line-height: 20px;word-break: break-all;overflow: hidden;text-overflow: ellipsis;">赠品小葱50g/份（每单一份多拍不送）</span>
                                            <p style="padding-top: 5px;font-size:10px">月售723件 好评100%</p>
                                            <div style="overflow: hidden;padding-top: 5px;">
                                                <div >
                                                    <label style="font-size: 18px;line-height: 22px;display: block;white-space: nowrap;color: #ff3434;font-size: 18px;">￥0.01</label>
                                                    <label style="display: block;white-space: nowrap;">
                                                        <span style="color: rgb(109, 203, 84); font-size: 12px; line-height: 15px; font-weight: bold; text-decoration: none;">￥0.01</span>
                                                        <img :src="assets.xjhy" style="background-repeat: no-repeat;max-height: 10px;max-width: 38px;background-size: 100%;vertical-align: top;padding-top: 2px;margin-top: 4px;">
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="cartBox" style="position: absolute;right: 10px;bottom: 15px;width:27px;height:27px;margin-right:10px;">
                                        <div style="display: flex;">
                                            <div style="width: 27px;height: 27px;vertical-align: top;border: 0 solid transparent;">
                                                <img :src="imgUrl+'/upload/plus.png'" alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="goods-item">
                                <div style="display: flex;position: relative;overflow: hidden;padding: 15px 10px 15px 0;background: #fff;    justify-content: space-between;">
                                    <div style="overflow: hidden;color: #555;">
                                        <div style="display: flex;position: relative;float: left;margin-top: 2px;border-radius: 4px;width:65px">
                                            <img :src="assets.tudou" alt="" style="display: block;width: 65px;height: 65px;border-radius: 4px;"> 
                                        </div>
                                        <div style="padding-left: 10px;overflow: hidden;flex: 1 1;display: flex;flex-direction: column;height: 100%;width:164.6px">
                                            <span style="font-weight: 700;font-size: 16px;color: #333;max-height: 42px;line-height: 20px;word-break: break-all;overflow: hidden;text-overflow: ellipsis;">新土豆 黄心土豆 《新上市》 约500g /份</span>
                                            <p style="padding-top: 5px;font-size:10px">月售511件 好评99%</p>
                                            <div style="overflow: hidden;padding-top: 5px;">
                                                <div >
                                                    <label style="font-size: 18px;line-height: 22px;display: block;white-space: nowrap;color: #ff3434;font-size: 18px;">￥2.6</label>
                                                    <label style="display: block;white-space: nowrap;">
                                                        <span style="color: rgb(109, 203, 84); font-size: 12px; line-height: 15px; font-weight: bold; text-decoration: none;">￥4.56</span>
                                                        <img :src="assets.xjhy" style="background-repeat: no-repeat;max-height: 10px;max-width: 38px;background-size: 100%;vertical-align: top;padding-top: 2px;margin-top: 4px;">
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="cartBox" style="position: absolute;right: 10px;bottom: 15px;width:27px;height:27px;margin-right:10px;">
                                        <div style="display: flex;">
                                            <div style="width: 27px;height: 27px;vertical-align: top;border: 0 solid transparent;">
                                                <img :src="imgUrl+'/upload/plus.png'" alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="goods-item">
                                <div style="display: flex;position: relative;overflow: hidden;padding: 15px 10px 15px 0;background: #fff;    justify-content: space-between;">
                                    <div style="overflow: hidden;color: #555;">
                                        <div style="display: flex;position: relative;float: left;margin-top: 2px;border-radius: 4px;width:65px">
                                            <img :src="assets.hlp" alt="" style="display: block;width: 65px;height: 65px;border-radius: 4px;"> 
                                        </div>
                                        <div style="padding-left: 10px;overflow: hidden;flex: 1 1;display: flex;flex-direction: column;height: 100%;width:164.6px">
                                            <span style="font-weight: 700;font-size: 16px;color: #333;max-height: 42px;line-height: 20px;word-break: break-all;overflow: hidden;text-overflow: ellipsis;">【地方特色】 净胡萝卜 约130g /份</span>
                                            <p style="padding-top: 5px;font-size:10px">月售379件 好评99%</p>
                                            <div style="overflow: hidden;padding-top: 5px;">
                                                <div >
                                                    <label style="font-size: 18px;line-height: 22px;display: block;white-space: nowrap;color: #ff3434;font-size: 18px;">￥0.9</label>
                                                    <label style="display: block;white-space: nowrap;">
                                                        <span style="color: rgb(109, 203, 84); font-size: 12px; line-height: 15px; font-weight: bold; text-decoration: none;">￥2.66</span>
                                                        <img :src="assets.xjhy" style="background-repeat: no-repeat;max-height: 10px;max-width: 38px;background-size: 100%;vertical-align: top;padding-top: 2px;margin-top: 4px;">
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="cartBox" style="position: absolute;right: 10px;bottom: 15px;width:27px;height:27px;margin-right:10px;">
                                        <div style="display: flex;">
                                            <div style="width: 27px;height: 27px;vertical-align: top;border: 0 solid transparent;">
                                                <img :src="imgUrl+'/upload/plus.png'" alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="goods-item">
                                <div style="display: flex;position: relative;overflow: hidden;padding: 15px 10px 15px 0;background: #fff;    justify-content: space-between;">
                                    <div style="overflow: hidden;color: #555;">
                                        <div style="display: flex;position: relative;float: left;margin-top: 2px;border-radius: 4px;width:65px">
                                            <img :src="assets.watermalen" alt="" style="display: block;width: 65px;height: 65px;border-radius: 4px;"> 
                                        </div>
                                        <div style="padding-left: 10px;overflow: hidden;flex: 1 1;display: flex;flex-direction: column;height: 100%;width:164.6px">
                                            <span style="font-weight: 700;font-size: 16px;color: #333;max-height: 42px;line-height: 20px;word-break: break-all;overflow: hidden;text-overflow: ellipsis;">上海8424西瓜 （大的切半） 约2kg /份</span>
                                            <p style="padding-top: 5px;font-size:10px">月售70件 好评100%</p>
                                            <div style="overflow: hidden;padding-top: 5px;">
                                                <div >
                                                    <label style="font-size: 18px;line-height: 22px;display: block;white-space: nowrap;color: #ff3434;font-size: 18px;">￥12.8</label>
                                                    <label style="display: block;white-space: nowrap;">
                                                        <span style="color: rgb(109, 203, 84); font-size: 12px; line-height: 15px; font-weight: bold; text-decoration: none;">￥28.8</span>
                                                        <img :src="assets.xjhy" style="background-repeat: no-repeat;max-height: 10px;max-width: 38px;background-size: 100%;vertical-align: top;padding-top: 2px;margin-top: 4px;">
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="cartBox" style="position: absolute;right: 10px;bottom: 15px;width:27px;height:27px;margin-right:10px;">
                                        <div style="display: flex;">
                                            <div style="width: 27px;height: 27px;vertical-align: top;border: 0 solid transparent;">
                                                <img :src="imgUrl+'/upload/plus.png'" alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="goods-item">
                                <div style="display: flex;position: relative;overflow: hidden;padding: 15px 10px 15px 0;background: #fff;    justify-content: space-between;">
                                    <div style="overflow: hidden;color: #555;">
                                        <div style="display: flex;position: relative;float: left;margin-top: 2px;border-radius: 4px;width:65px" @click="detail()">
                                            <img :src="assets.xhs" alt="" style="display: block;width: 65px;height: 65px;border-radius: 4px;"> 
                                        </div>
                                        <div style="padding-left: 10px;overflow: hidden;flex: 1 1;display: flex;flex-direction: column;height: 100%;width:164.6px" @click="detail()">
                                            <span style="font-weight: 700;font-size: 16px;color: #333;max-height: 42px;line-height: 20px;word-break: break-all;overflow: hidden;text-overflow: ellipsis;">精选西红柿  约500g/份</span>
                                            <p style="padding-top: 5px;font-size:10px">月售780件 好评97%</p>
                                            <div style="overflow: hidden;padding-top: 5px;">
                                                <div >
                                                    <label style="font-size: 18px;line-height: 22px;display: block;white-space: nowrap;color: #ff3434;font-size: 18px;">￥5.46</label>
                                                    <label style="display: block;white-space: nowrap;">
                                                        <span style="color: rgb(109, 203, 84); font-size: 12px; line-height: 15px; font-weight: bold; text-decoration: none;">￥6.46</span>
                                                        <img :src="assets.xjhy" style="background-repeat: no-repeat;max-height: 10px;max-width: 38px;background-size: 100%;vertical-align: top;padding-top: 2px;margin-top: 4px;">
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="cartBox" style="position: absolute;right: 10px;bottom: 15px;width:27px;height:27px;margin-right:10px;">
                                        <div style="display: flex;">
                                            <div style="width: 27px;height: 27px;vertical-align: top;border: 0 solid transparent;">
                                                <img :src="imgUrl+'/upload/plus.png'" alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="goods-item">
                                <div style="display: flex;position: relative;overflow: hidden;padding: 15px 10px 15px 0;background: #fff;    justify-content: space-between;">
                                    <div style="overflow: hidden;color: #555;">
                                        <div style="display: flex;position: relative;float: left;margin-top: 2px;border-radius: 4px;width:65px">
                                            <img :src="assets.cong" alt="" style="display: block;width: 65px;height: 65px;border-radius: 4px;"> 
                                        </div>
                                        <div style="padding-left: 10px;overflow: hidden;flex: 1 1;display: flex;flex-direction: column;height: 100%;width:164.6px">
                                            <span style="font-weight: 700;font-size: 16px;color: #333;max-height: 42px;line-height: 20px;word-break: break-all;overflow: hidden;text-overflow: ellipsis;">赠品小葱50g/份（每单一份多拍不送）</span>
                                            <p style="padding-top: 5px;font-size:10px">月售723件 好评100%</p>
                                            <div style="overflow: hidden;padding-top: 5px;">
                                                <div >
                                                    <label style="font-size: 18px;line-height: 22px;display: block;white-space: nowrap;color: #ff3434;font-size: 18px;">￥0.01</label>
                                                    <label style="display: block;white-space: nowrap;">
                                                        <span style="color: rgb(109, 203, 84); font-size: 12px; line-height: 15px; font-weight: bold; text-decoration: none;">￥0.01</span>
                                                        <img :src="assets.xjhy" style="background-repeat: no-repeat;max-height: 10px;max-width: 38px;background-size: 100%;vertical-align: top;padding-top: 2px;margin-top: 4px;">
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="cartBox" style="position: absolute;right: 10px;bottom: 15px;width:27px;height:27px;margin-right:10px;">
                                        <div style="display: flex;">
                                            <div style="width: 27px;height: 27px;vertical-align: top;border: 0 solid transparent;">
                                                <img :src="imgUrl+'/upload/plus.png'" alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="goods-item">
                                <div style="display: flex;position: relative;overflow: hidden;padding: 15px 10px 15px 0;background: #fff;    justify-content: space-between;">
                                    <div style="overflow: hidden;color: #555;">
                                        <div style="display: flex;position: relative;float: left;margin-top: 2px;border-radius: 4px;width:65px">
                                            <img :src="assets.tudou" alt="" style="display: block;width: 65px;height: 65px;border-radius: 4px;"> 
                                        </div>
                                        <div style="padding-left: 10px;overflow: hidden;flex: 1 1;display: flex;flex-direction: column;height: 100%;width:164.6px">
                                            <span style="font-weight: 700;font-size: 16px;color: #333;max-height: 42px;line-height: 20px;word-break: break-all;overflow: hidden;text-overflow: ellipsis;">新土豆 黄心土豆 《新上市》 约500g /份</span>
                                            <p style="padding-top: 5px;font-size:10px">月售511件 好评99%</p>
                                            <div style="overflow: hidden;padding-top: 5px;">
                                                <div >
                                                    <label style="font-size: 18px;line-height: 22px;display: block;white-space: nowrap;color: #ff3434;font-size: 18px;">￥2.6</label>
                                                    <label style="display: block;white-space: nowrap;">
                                                        <span style="color: rgb(109, 203, 84); font-size: 12px; line-height: 15px; font-weight: bold; text-decoration: none;">￥4.56</span>
                                                        <img :src="assets.xjhy" style="background-repeat: no-repeat;max-height: 10px;max-width: 38px;background-size: 100%;vertical-align: top;padding-top: 2px;margin-top: 4px;">
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="cartBox" style="position: absolute;right: 10px;bottom: 15px;width:27px;height:27px;margin-right:10px;">
                                        <div style="display: flex;">
                                            <div style="width: 27px;height: 27px;vertical-align: top;border: 0 solid transparent;">
                                                <img :src="imgUrl+'/upload/plus.png'" alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="goods-item">
                                <div style="display: flex;position: relative;overflow: hidden;padding: 15px 10px 15px 0;background: #fff;    justify-content: space-between;">
                                    <div style="overflow: hidden;color: #555;">
                                        <div style="display: flex;position: relative;float: left;margin-top: 2px;border-radius: 4px;width:65px">
                                            <img :src="assets.hlp" alt="" style="display: block;width: 65px;height: 65px;border-radius: 4px;"> 
                                        </div>
                                        <div style="padding-left: 10px;overflow: hidden;flex: 1 1;display: flex;flex-direction: column;height: 100%;width:164.6px">
                                            <span style="font-weight: 700;font-size: 16px;color: #333;max-height: 42px;line-height: 20px;word-break: break-all;overflow: hidden;text-overflow: ellipsis;">【地方特色】 净胡萝卜 约130g /份</span>
                                            <p style="padding-top: 5px;font-size:10px">月售379件 好评99%</p>
                                            <div style="overflow: hidden;padding-top: 5px;">
                                                <div >
                                                    <label style="font-size: 18px;line-height: 22px;display: block;white-space: nowrap;color: #ff3434;font-size: 18px;">￥0.9</label>
                                                    <label style="display: block;white-space: nowrap;">
                                                        <span style="color: rgb(109, 203, 84); font-size: 12px; line-height: 15px; font-weight: bold; text-decoration: none;">￥2.66</span>
                                                        <img :src="assets.xjhy" style="background-repeat: no-repeat;max-height: 10px;max-width: 38px;background-size: 100%;vertical-align: top;padding-top: 2px;margin-top: 4px;">
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="cartBox" style="position: absolute;right: 10px;bottom: 15px;width:27px;height:27px;margin-right:10px;">
                                        <div style="display: flex;">
                                            <div style="width: 27px;height: 27px;vertical-align: top;border: 0 solid transparent;">
                                                <img :src="imgUrl+'/upload/plus.png'" alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="goods-item">
                                <div style="display: flex;position: relative;overflow: hidden;padding: 15px 10px 15px 0;background: #fff;    justify-content: space-between;">
                                    <div style="overflow: hidden;color: #555;">
                                        <div style="display: flex;position: relative;float: left;margin-top: 2px;border-radius: 4px;width:65px">
                                            <img :src="assets.watermalen" alt="" style="display: block;width: 65px;height: 65px;border-radius: 4px;"> 
                                        </div>
                                        <div style="padding-left: 10px;overflow: hidden;flex: 1 1;display: flex;flex-direction: column;height: 100%;width:164.6px">
                                            <span style="font-weight: 700;font-size: 16px;color: #333;max-height: 42px;line-height: 20px;word-break: break-all;overflow: hidden;text-overflow: ellipsis;">上海8424西瓜 （大的切半） 约2kg /份</span>
                                            <p style="padding-top: 5px;font-size:10px">月售70件 好评100%</p>
                                            <div style="overflow: hidden;padding-top: 5px;">
                                                <div >
                                                    <label style="font-size: 18px;line-height: 22px;display: block;white-space: nowrap;color: #ff3434;font-size: 18px;">￥12.8</label>
                                                    <label style="display: block;white-space: nowrap;">
                                                        <span style="color: rgb(109, 203, 84); font-size: 12px; line-height: 15px; font-weight: bold; text-decoration: none;">￥28.8</span>
                                                        <img :src="assets.xjhy" style="background-repeat: no-repeat;max-height: 10px;max-width: 38px;background-size: 100%;vertical-align: top;padding-top: 2px;margin-top: 4px;">
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="cartBox" style="position: absolute;right: 10px;bottom: 15px;width:27px;height:27px;margin-right:10px;">
                                        <div style="display: flex;">
                                            <div style="width: 27px;height: 27px;vertical-align: top;border: 0 solid transparent;">
                                                <img :src="imgUrl+'/upload/plus.png'" alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
  font-family: Microsoft YaHei, Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  background-color: #fafafa;
  word-wrap: break-word;
  width: 100%;
  .store-goods-right-wrap {
    display: flex;
    position: relative;
    flex-direction: column;
    background-color: #fff;
    overflow: hidden;
    store-good-right-content {
      flex: 1 1;
      display: flex;
      padding-bottom: 50px;
      box-sizing: border-box;
      position: relative;
      overflow: hidden;
      overflow-y: auto;
      .store-good-list-box store-goods-list {
        background: #fff;
        margin-right: 0;
        flex-direction: column;
        overflow: hidden;
        flex: 1 1;
        display: flex;
        .good-current-sencond-box {
          .childCategoryTitle {
            flex-direction: row;
            justify-content: space-between;
            color: #666;
            .good-current-title-txt {
              -webkit-box-flex: 1;
              font-size: 12px;
              line-height: 30px;
              color: #666;
              padding-left: 10px;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
            .categorySort {
              font-size: 12px;
              line-height: 30px;
              color: #666;
              max-width: 132px;
              .sort-span {
                padding: 7px 0;
                vertical-align: middle;
              }
              .sort-down {
                display: inline-block;
                vertical-align: middle;
                width: 5px;
                height: 5px;
                border-left: 1px solid #666;
                border-bottom: 1px solid #666;
                margin: 0 10px 0 5px;
              }
            }
          }
        }
      }
    }
  }
}
</style>

<script>
export default {
  props: ["goods_id"],
  data() {
    return {
      car: [],
      totalnum:1
    };
  },
  created() {
    //购物车初始化
    this.$root.cars;
    // this.cars[this.goods_id]={};
    this.$set(this.$root.cars, this.car, {});
    this.getCar();
  },
  methods: {
    //添加商品
    add(goods, id) {
      console.log(id);
      console.log(goods);
      goods.num++
      console.log(goods.num)
      const car1 = document.querySelector(".car1");
      const totalnum=document.querySelector('.totalnum')
      const totalnum2=document.querySelector('.totalnum2')
      const priceSpan=document.querySelector('.price-span')
      car1.style.display = "flex";
         console.dir(priceSpan);
         totalnum.innerText=2;
         totalnum2.innerText=2;
         priceSpan.innerText="￥37.06"
         
    //   totalnum+=totalnum;
      //this.$set(this.$root.cars[this.car],goods)
      //   this.cars[this.goods_id]=goods;
    },
    async getCar() {
      var { data, data: { result } } = await this.axios({
        methods: "get",
        url: "/car"
      });
      this.car = result;
    },
    detail() {
      this.$router.push({
        name: "GoodsDetail"
      });
    }
  }
};
</script>


